home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / disk / cdrom / MusicBox-2.1bi.lha / MusicBox / Install.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-29  |  2.5 KB  |  57 lines

  1. /*
  2.  ##########################################################################
  3.  ####                                                                  ####
  4.  ####                        The MusicBox Project                      ####
  5.  ####                    ============================                  ####
  6.  ####                                                                  ####
  7.  #### Inquiry.c                                                        ####
  8.  ####                                                                  ####
  9.  #### Version 2.1os  --  September 29, 2000                            ####
  10.  ####                                                                  ####
  11.  #### Copyright (C) 1994  Thomas Dreibholz                             ####
  12.  ####               2000  Molbachweg 7                                 ####
  13.  ####                     51674 Wiehl                                  ####
  14.  ####                     Germany                                      ####
  15.  ####                                                                  ####
  16.  ####                     EMail: Dreibholz@bigfoot.com                 ####
  17.  ####                     WWW:   http://www.bigfoot.com/~dreibholz     ####
  18.  ####                                                                  ####
  19.  ##########################################################################
  20. */
  21. /***************************************************************************
  22.  *                                                                         *
  23.  *   This program is free software; you can redistribute it and/or modify  *
  24.  *   it under the terms of the GNU General Public License as published by  *
  25.  *   the Free Software Foundation; either version 2 of the License, or     *
  26.  *   (at your option) any later version.                                   *
  27.  *                                                                         *
  28.  ***************************************************************************/
  29.  
  30. /* Install */
  31.  
  32. #include <exec/types.h>
  33. #include <stdio.h>
  34.  
  35. void main()
  36. {
  37.  ULONG i;
  38.  UBYTE c;
  39.  UBYTE str[128];
  40.  UBYTE cmd[256];
  41.  
  42.  puts("Enter directory to install MusicBox 2.1os (e.g. DH0:MusicBox)");
  43.  scanf("%s",&str);
  44.  printf("\nYou entered: «%s»\n",str);
  45.  puts("Is this correct? (y/n)");
  46.  fflush(stdin);
  47.  c=toupper(getc(stdin));
  48.  if(c=='Y') {
  49.     sprintf(&cmd,"c:Execute Install.CLI \"%s\"",&str);
  50.     printf("CLI> %s\n",&cmd);
  51.     i=Execute(&cmd,0L,0L);
  52.  }
  53.  puts("\nPress RETURN to continue.");
  54.  fflush(stdin);
  55.  c=getc(stdin);
  56. }
  57.